package com.ciaojian.worker.service;

import com.ciaojian.core.mapper.UserTimesCardMapper;
import com.ciaojian.core.model.UserTimesCard;
import com.ciaojian.core.service.UserTimesCardService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author oxiny
 */
@Service
public class UserTimesCardServiceImpl extends UserTimesCardService<UserTimesCardMapper, UserTimesCard> {

    /**
     * 查询用户次卡信息
     * <p>根据用户ID和门店查询用户可用次卡</p>
     */
    public List<UserTimesCard> getCardInfo(Integer userId, Integer storeId, String serviceTitle) {
        return this.baseMapper.listUserTimesCardUsable(userId, storeId, serviceTitle);
    }
}
